package annotationDemo;

import java.lang.reflect.Field;

/**
 * 注解帮助类
 * @author zybw-kf01
 *
 */
public class FieldMetaUtil {
    private FieldMeta meta;  
    private Field field;  
    private String name;  
    private Class<?> type; 
    public FieldMetaUtil(){}  
    
    public FieldMetaUtil(FieldMeta meta, Field field) {  
        super();  
        this.meta = meta;  
        this.field = field;  
        this.name=field.getName();  
        this.type=field.getType();  
    }  
      
      
    public FieldMetaUtil(FieldMeta meta, String name, Class<?> type) {  
        super();  
        this.meta = meta;  
        this.name = name;  
        this.type = type;  
    }

	public FieldMeta getMeta() {
		return meta;
	}

	public void setMeta(FieldMeta meta) {
		this.meta = meta;
	}

	public Field getField() {
		return field;
	}

	public void setField(Field field) {
		this.field = field;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Class<?> getType() {
		return type;
	}

	public void setType(Class<?> type) {
		this.type = type;
	}  
  
    
}
